package fr.vvins.core.user.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import fr.vvins.core.dao.EntityImpl;


/**
 * Contact entity
 */
@Entity
@Table(schema="vvins", name="VV_CONTACT")
public class Contact extends EntityImpl implements Serializable {

	private static final long serialVersionUID = -5890287234995243101L;
	@Id
	@GeneratedValue
	@Column(name="ID")
	private Integer id;
	@Basic
	@Column(name="NUMBER")
	private String number;
	@Basic
	@Column(name="ADDRESS")
	private String address;
	@Basic
	@Column(name="ADDRESS2")
	private String address2;
	@Basic
	@Column(name="POSTAL_CODE")
	private String postalCode;
	@Basic
	@Column(name="TOWN")
	private String town;
	@Basic
	@Column(name="PHONE")
	private String phone;
	@Basic
	@Column(name="MOBILE")
	private String mobile;
	@Basic
	@Column(name="CREATION_DATE")
	private Date creationDate;
	

	public Contact() {
	}

	public Contact(Integer id, String number, String address, String address2,
			String postalCode, String town, String phone, String mobile,
			Date creationDate) {
		super();
		this.id = id;
		this.number = number;
		this.address = address;
		this.address2 = address2;
		this.postalCode = postalCode;
		this.town = town;
		this.phone = phone;
		this.mobile = mobile;
		this.creationDate = creationDate;
	}

	@Override
	public Integer getId() {
		return id;
	}

	@Override
	public void setId(Integer id) {
		this.id = id;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getAddress2() {
		return address2;
	}

	public void setAddress2(String address2) {
		this.address2 = address2;
	}

	public String getPostalCode() {
		return postalCode;
	}

	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}

	public String getTown() {
		return town;
	}

	public void setTown(String town) {
		this.town = town;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
	
}
